package top.huhuiyu.spirngboot2.total.entity.message;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import top.huhuiyu.spirngboot2.total.vo.UserInfo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName("tb_message")
public class TbMessage implements Serializable {
    private final static long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer mid;
    private Integer uid;
    private String title;
    private String info;
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Integer hits;
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Integer praise;
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Integer reply;
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private String reason;
    @TableLogic
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private String deleted;
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date lastupdate;
    @TableField(exist = false)
    private UserInfo userInfo;
    @TableField(exist = false)
    private List<TbMessageReply> replies;

}
